<script>
export default {
  name: 'MyMessage',
  data() {
    return {
      messageList: [
        {"id":1,"content":"消息一"},
        {"id":2,"content":"消息二"},
        {"id":3,"content":"消息三"}
      ]
    }
  }
}
</script>

<template>
  <div>
    <ul>
      <li v-for="m in messageList" :key="m.id">
        <router-link :to="`/home/message/detail/${m.id}/${m.content}`" active-class="active">{{m.content}}</router-link>
      </li>
    </ul>
    <router-view></router-view>
  </div>
</template>

<style>

</style>